﻿/* =========================================================================================
 * Copyright (C) 2014 Rajdeep Podder
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *  
 * ========================================================================================= */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ReCaptcha.Mvc5.Model
{
    /// <summary>
    /// ReCaptchaUIModel for customizing look of ReCaptcha.
    /// cref = "https://developers.google.com/recaptcha/docs/customization"
    /// </summary>
    public class ReCaptchaUIModel
    {
        /// <summary>
        /// Name of the theme, default is red.
        /// </summary>
        public string theme { get; set; }

        /// <summary>
        /// Lang code of ui. Default is "en".
        /// cref = "https://developers.google.com/recaptcha/docs/customization#i18n"
        /// </summary>
        public string lang { get; set; }

        /// <summary>
        /// Map of custom translations.
        /// cref = "https://developers.google.com/recaptcha/docs/customization#i18n"
        /// </summary>
        public IDictionary<string, string> custom_translations { get; set; }
        
        /// <summary>
        /// Html element id, if theme is custom.
        /// cref = "https://developers.google.com/recaptcha/docs/customization#Custom_Theming"
        /// </summary>
        public string custom_theme_widget { get; set; }

        /// <summary>
        /// Tab index of ReCaothcha user input field.
        /// </summary>
        public int tabindex { get; set; }

        /// <summary>
        /// Default ctor.
        /// </summary>
        public ReCaptchaUIModel()
        {
            //Setting default value
            this.theme = ReCaptchaThemes.red;
            this.lang = "en";
            this.custom_translations = null;
            this.custom_theme_widget = "";
            this.tabindex = 0;
        }
    }
}
